﻿using System.ComponentModel.DataAnnotations;
using JuCheap.Core.Models.Enum;
using JuCheap.Core.Infrastructure.Extentions;
using System;

namespace JuCheap.Core.Models
{
    /// <summary>
    /// 显示推送模型
    /// </summary>
    public class ShowPushDto
    {
        /// <summary>
        /// 推送信息Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 推送内容
        /// </summary>
        [Display(Name = "内容"), Required(ErrorMessage ="内容不能为空")]
        public string Contents { get; set; }
        /// <summary>
        /// 推送文本
        /// </summary>
        [Display(Name = "文本"), Required(ErrorMessage ="文本不能为空")]
        public string Texts { get; set; }
        /// <summary>
        /// 是否推送
        /// </summary>
        [Display(Name = "发布"),Required]
        public int Push { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDateTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }
        public string State { get; set; }
        public string Time { get; set; }
    }
}
